home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Millenium Investment Guide / Hargreaves Lansdown - The Ultimate Millenium Investment Guide (IG).ISO / mac / Xtras / DirectMedia / DirectMedia Documentation.dxr / 00007_Field_Creating Projectors.txt < prev    next >
Text File  |  1998-04-14  |  3KB  |  42 lines

  1. Creating Projectors
  2.  
  3. DirectMedia Xtra┬« cast members operate only under Windows┬« 95 and Windows NT┬«. Therefore, you should create your Projectors to Windows┬« 95 and Windows NT┬«, and with the "Animate in Background" option checked.  To prevent problems with palettes you should include with each projector a copy of the modified DIRECTOR.INI file you created following the instructions in the "Getting Started" section. The .ini file should be renamed to match the name of the Projector, i.e.:
  4. Projector: myproj.exe
  5. .INI file: myproj.ini
  6.  
  7. The Xtra is automatically included in the Projector if your first movie contains a DirectMedia Xtra┬« cast member. If you are creating a "dummy"  projector that will call your .dxr movie, you can include the Xtra in the Projector using the MODIFY->MOVIE->XTRAS menu, and adding the DirectMediaXtra.x32 file. 
  8. TIP: You can also deliver the DirectMediaXtra.x32 file in a folder named XTRAS, located in the same directory of your Projector, if you do not want to embed the file into your projector.
  9.  
  10. We also recommend including a copy of the LINGO.INI file that is installed with the DirectMedia Xtra┬« sample movies in the same directory of your Projector. This modified Lingo.ini file contains the following code to prevent problems playing sounds when Intel RSX and DirectSound are installed:
  11.  
  12. on startup
  13.     if string(0.0)="a" then nothing
  14.      ---Fix problem with sounds not playing
  15.      ---if Intel RSX is installed
  16.    set the soundkeepdevice to 0
  17.    beep
  18. end startup 
  19.  
  20. The final structure of files should look like:
  21. Projector    - C:\myproj\proj.exe
  22. .INI file       - C:\myproj\proj.ini
  23. Lingo.ini    - C:\myproj\lingo.ini
  24.  
  25. Optional (if Xtra was not embedded into the Projector):
  26.  
  27. Xtra file    - C:\myproj\Xtras\DirectMediaXtra.x32
  28.  
  29. The Xtra will automatically locate all linked Media files that are located in the same directory of the Projector. The Xtra will also search all the directories listed in "the searchpath" Lingo variable for missing Media files. You can include the following code on your LINGO.INI file to add directories to the searchpath variable:
  30.  
  31. on startup
  32.     if string(0.0)="a" then nothing
  33.      ---Fix problem with sounds not playing
  34.      ---if Intel RSX is installed
  35.    set the soundkeepdevice to 0
  36.    beep
  37.   -- Added to look for files in the "media" 
  38.   -- subdirectory
  39.   append(the searchpath, the pathname && "media")
  40. end startup 
  41.  
  42. You can safely put your Media files in the "media" subdirectory (C:\myproj\media in the example above) and the Xtra will automatically find them when the Projector starts.